package bamin.com.bamindaijia.constant;

/**
 * Created by zjb on 2016/6/12.
 */
public class Constant {
    //    http://192.168.1.112:8080/designated/app/customer/sendMessage?phone=15871105320&code=3666
    public static final String HOST = "http://120.24.46.15:8080/aiton-designated-passenager-app-webapp/designated/app/customer";
//    public static final String HOST = "http://192.168.16.130:8080/aiton-designated-passenager-app-webapp/designated/app/customer";
    public static final int ABLEVERSION = 0;//可用版本号
/*    //百度云推送的频道ID
    public static String CHANNELID = "";

    public static String getCHANNELID() {
        return CHANNELID;
    }
    public static void setCHANNELID(String CHANNELID) {
        Constant.CHANNELID = CHANNELID;
    }*/
    public static final String APP_ID = "";


    public static class Url {
        //更新
        public static final String UP_GRADE = "http://bmcx.oss-cn-shanghai.aliyuncs.com/bmzc/upgradea_daijiachengke.txt";
        //        public static final String GET_SMS = HOST + "/sendMessage";
        //短信
        public static final String GET_SMS = "http://120.24.46.15:8080/aiton-designated-passenager-app-webapp/designated/app/customer/sendMessage";
        //获取司机信息
        public static final String GETDRIVERINFO = "http://192.168.16.130:8080/aiton-designated-driver-app-webapp/designated/app/driver/loadloginId";
        /**
         * 传入参数
         * name(名称)
         * phone(电话)
         * deviceId(手机ID)
         */
        public static final String LOGIN = HOST + "/addCustomer";
        public static final String CHECK_LIVE = HOST + "/live/cheklive";//判断服务器
        public static final String LOADLOGINID = HOST + "/loadloginId";//传入参数：account_id（用户ID）
        /**
         * 传入参数：
         * customerId（顾客ID）
         * customerPhone（号码）
         * customerName（姓名）
         * startLocation（出发地）
         * endLocation（目的地）
         * startCoordinate（起点坐标）
         * endCoordinate（终点坐标）
         * orderCity（订单城市）
         * money（金额）
         * fee（小费）
         * mileage（公里数）
         * key（个推的推送ID）
         * oneself  （判断是否为自己叫代驾，默认0）
         */
        public static final String CALLDRIVER = HOST + "/order/addOrder";
        /**
         * 传入参数:
         * start(起点坐标)
         */
        public static final String GETDRIVER = HOST + "/order/getDriver";
        /**
         * 花费
         * 传入参数：
         * start(起点坐标)
         * end（终点坐标）
         * city（当前城市）
         */
        public static final String GETCOST = HOST + "/order/estimateFee";
        public static final String FIND_NOT_FINISH_ORDER = HOST + "/order/findNotFinishOrder";//判断有未完成的订单
        public static final String GET_ORDER_IS_ING = HOST + "/order/getOrderIsIng";//未完成的订单的信息
        public static final String CUSTOMER_CANCEL_ORDER = HOST + "/order/customerCancelOrder";//取消订单
        //获取支付宝签名
        public static final String GETSIGN = HOST + "/alipay/getsign";
        public static final String ISPAY = HOST + "/order/againPayPage"; //是否支付
        public static final String CUSTOMERIMAGE = HOST + "/image/customerImage";//用户头像
        public static final String USER_INFO = HOST + "/updataPersonal";//用户信息
        public static final String ALL_ORDER = HOST + "/order/customerOldOrder";//所有订单
        public static final String SET_PINGJIA = HOST + "/appraise/addAppraise";//上传评价
        public static final String GET_PINGJIA = HOST + "/appraise/loadAppraise";//下载评价
        public static final String APPOINTED_ORDER = HOST + "/order/customerOldOrderByDate";//指定日期
        public static final String CHARGES_NOTES = "http://q.eqxiu.com/s/16f5zj5p";
        //购票须知
        public static final String CLAUSE = "http://bmcx.oss-cn-shanghai.aliyuncs.com/html/goupiaoxuzhi.html";
        public static final String CANCLE_ORDER_BY_HAND = HOST + "/CancelOrder";
        public static final String OUT_TIME_CANCEL_ORDER = HOST + "/outTimeCancelOrder";
        public static final String LOAD_ORDER_NO_RECEIPT = HOST + "/receipt/loadOrderNoReceipt";//没有开发票的订单
        public static final String LOAD_ORDER_RECEIPT = HOST + "/receipt/appLoadReceipt";//加载开票记录
        public static final String APPLY_ORDER_RECEIPT = HOST + "/receipt/addReceipt";//申请开发票
        public static final String ADD_COMPLAIN = HOST + "/complain/addComplain";//客户新增投诉
        public static final String ADD_PROPOSE = HOST + "/propose/addPropose";//客户新增反馈
        public static final String APP_CUSTOMER_GET_MESSAGE = HOST + "/message/appCustomerGetMessage";//最近8八记录
        public static final String GET_CITY_FEE = HOST + "/getCityFee";//计费规则

    }

    public static class PERMISSION {
        public static final int ACCESS_COARSE_LOCATION = 0;
        public static final int ACCESS_FINE_LOCATION = 1;
        public static final int WRITE_EXTERNAL_STORAGE = 2;
        public static final int READ_EXTERNAL_STORAGE = 3;
        public static final int READ_PHONE_STATE = 4;
        public static final int READ_CONTACTS = 5;
        public static final int RECEIVE_BOOT_COMPLETED = 6;
        public static final int CALL_PHONE = 7;
        public static final int PERMISSION_READ_EXTERNAL_STORAGE = 8;
        public static final int PERMISSION_CAMERA = 9;
        public static final int SYSTEM_ALERT_WINDOW = 10;
        public static final int PERMISSION_WRITE_EXTERNAL_STORAGE_SSENGJI = 11;
        public static final int CAMERA = 12;


    }

    public static class INTENT_KEY {
        public static final String START_SITE = "startSite";
        public static final String CITY = "city";
        public static final String CITY_CODE = "cityCode";
        public static final String START_SITE_BACK = "startSiteBack";
        public static final String END_SITE_BACK = "endSiteBack";
        public static final String START_LATLNG_BACK = "startLatlngBack";
        public static final String END_LATLNG_BACK = "endLatlngBack";
        public static final String CHOSSE_TYPE = "chosse_type";
        public static final String START = "start";
        public static final String END = "end";
        public static final String THE_CONTACTS = "the_contacts";
        public static final String PUSH_ORDER_ING_VALUE = "pushOrderIngValue";
        public static final String GETPASSAGER = "getPassager";
        public static final String DRIVER_CHANGE_MILEAGE = "driverChangeMileage";
        public static final String COST = "cost";
        public static final String ORDER = "order";
        public static final String COMMONLY_ADDRESS = "commonly_address";
        public static final String COMMONLY_ADDRESS_HOME = "commonly_address_home";
        public static final String COMMONLY_ADDRESS_COMPANY = "commonly_address_company";
        public static final String CHOSSE_SITE_ADDRESS_START = "chosse_site_address_start";
        public static final String CHOSSE_SITE_ADDRESS_END = "chosse_site_address_end";
        public static final String CHANGE_NAME = "changeName";
        public static final String QIAN_MING = "qianming";
        public static final String USER_NAME = "user_name";
        public static final String USER_AVATAR = "user_avatar";
        public static final String CHANGE_END = "changeEnd";
        public static final String USER_ID = "userId";
        public static final String UNFINISHED_ORDER = "unfinishedOrder";
        public static final String ORDER_DETAIL = "orderDetail";
        public static final String PAY = "pay";
        public static final String PINGJIA = "pingjia";
        public static final String DRIVER_INFO = "driverInfo";
        public static final String CAR_ID = "carId";
        public static final String EMERGENCY = "emergency";
        public static final String DAIJIACOST = "daijiacost";
        public static final String TITLE  = "title";
        public static final String URL  = "url";
        public static final String ADD_INFO_TYPE  = "addInfoType";
        public static final String SEX  = "sex";
        public static final String INVOICE  = "invoice";
        public static final String INVOICE_MONEY  = "invoice_money";
        public static final String USER  = "USER";
        public static final String TYPE  = "TYPE";
        public static final String ORDERCOMPLETE  = "orderComplete";
        public static final String DRIVERARRIVAL  = "driverArrival";
        public static final String PHONE  = "phone";
        public static final String SEND_COORDINATE  = "sendCoordinate";

    }

    public static class REQUEST_RESULT_CODE {
        public static final int CHOSSE_START_SITE = 1;
        public static final int CHOSSE_END_SITE = 2;
        public static final int PICK_CONTACT = 3;
        public static final int CHOSSE_CONTACTS = 4;
        public static final int SETTING = 5;
        public static final int CHOOSE_CITY = 6;
        public static final int COMMONLY_ADDRESS_HOME = 7;
        public static final int COMMONLY_ADDRESS_COMPANY = 8;
        public static final int CHANGE_NAEM = 9;
        public static final int QIAM_MING = 10;
        public static final int USER_INFO = 11;
        public static final int USER_ID = 12;
        public static final int GPS = 13;
        public static final int CAR_ID = 14;
        public static final int EMERGENCY = 15;
        public static final int SEX = 16;
        public static final int PINGJIA = 17;
        public static final int PHONE = 18;
        public static final int INVOICE = 19;
    }

    public static class SP {
        public static final String CONTACTS = "contacts";//存储常用联系电话
        public static final String SP_NAME = "spName";
        public static final String PHONE_NUM = "phoneNum";
        public static final String ID = "id";
        public static final String DEVICEID = "deviceId";
        public static final String IMAGE = "image";
        public static final String SP_ISFRIST = "isfrist";//是否第一次进入APP

    }

    public static class ACACHE {
        public static final String USER = "user";
        public static final String TIP_HOME = "tip_home";
        public static final String TIP_COMPANY = "tip_company";
        public static final String HISTORY_SITE_LIST ="history_site_list";
        public static final String NOTIFICATION ="notification";
        public static final String NOTIFICATIONINFO ="notificationinfo";
    }

    public static class BROADCASTCODE {
        public static final String HAS_DRIVER = "hasDiver";
        public static final String GETPASSAGER = "getPassager";
        public static final String DRIVER_CHANGE_MILEAGE = "driverChangeMileage";
        public static final String CHANGE_END = "changeEnd";
        public static final String PAY_RECEIVER = "pay_receiver";
        public static final String USER  = "user";
        public static final String ORDERCOMPLETE  = "orderComplete";
        public static final String DRIVERARRIVAL  = "driverArrival";
        public static final String NOTIFICATIONINFO  = "NotificationInfo";
        public static final String INVOICE  = "invoice";
        public static final String SEND_COORDINATE  = "sendCoordinate";

    }
    public static class ORDER_STATUS{
        public static final int  ORDER_COMPLETE = 0;
        public static final int  WAIT_DRIVER_RECEIVE = 1;
        public static final int  ORDER_RECEIVE = 2;
        public static final int  SERVING = 3;
        public static final int  SERVER_COMPLETE = 4;
        public static final int  SETTLEMENT  = 5;
        public static final int  CANCEL = 6;
        public static final int  NO_EVALUATION = 7;
        public static final int  WAIT_CUSTOMER = 8;

    }

    public static class TYPE {
        public static final String CAR_ID = "carId";
        public static final String CHANGE_NAME = "changeName";
        public static final String EMERGENCY = "emergency";
        public static final String SEX  = "sex";
        public static final String ALLORDER = "allorder";
        public static final String APPOINTEDORDER = "appointedorder";
    }

}
